package com.yigang.service;

import java.util.List;
import java.util.Map;

import com.yigang.entity.ProductVO;
import org.apache.ibatis.annotations.Param;

import com.yigang.entity.ImgAndProduct;
import com.yigang.entity.OrderAndProduct;
import com.yigang.entity.Product;
import com.yigang.utils.ResultUtil;

public interface ProductService {

    Product getById(int productId);
    ProductVO getColorById(int productId);

    ResultUtil selectProductList(Integer page, Integer limit, Product record);

    ResultUtil deleteByPrimaryKey(Integer productId);

    ResultUtil updateProductStatusById(int productId, int productRecommend);

    ResultUtil updateProductShelfById(int productId, int productShelf);

    ResultUtil insertSelective(Product record);

    ResultUtil updateByPrimaryKeySelective(Product record);

    Product selectProductById(int productId);

    public List<Map<String, Object>> getAllproduct(String searchKey,Integer classification_id);
    Product getAllproductById(Integer classification_id);


    public List<Map<String, Object>> getProductList(int product_id);

    public List<Map<String, Object>> productRecommend();

    public List<Map<String, Object>> productRecommend1();

    public List<Map<String, Object>> productRecommend2();

    public List<Map<String, Object>> getAllpage();

    public List<Map<String, Object>> getAllChanel();
    ResultUtil getProductImg(Integer page, Integer limit,ImgAndProduct imgAndProduct);
    
    ImgAndProduct selectImgAndProduct (ImgAndProduct imgAndProduct);
}
